#include "stdio.h"

void RWTest()
{
   FILE *stream;
   char list[30];
   int  i, numread, numwritten;

   /* Open file in text mode: */
   if( (stream = fopen( "fread.out", "w+b" )) != NULL )
   {
      for ( i = 0; i < 25; i++ )
         list[i] = (char)('z' - i);
      /* Write 25 characters to stream */
	  fseek( stream, 0L, SEEK_SET);
	   numwritten = fwrite( list, sizeof( char ), 3, stream );
    //    numwritten = fread(list, sizeof( char ), 20, stream );
       printf( "Wrote %d items\n", numwritten );
//	   printf("%s\n",list);
      fclose( stream );

   }
   else
      printf( "Problem opening the file\n" );

}